﻿using System;
using System.Collections.Generic;
using System.Text;
using TK3DSim.Sim;

namespace Tpro6Container.Class.ObjectClass
{
    public class ArmyObjectGroup: ArmyObject
    {
        private List<ArmyObject> allArmyObject;
        public ArmyObjectGroup()
        {

        }

        public ArmyObjectGroup(ArmyForSim  armysForDataBase)
        {
            int army = armysForDataBase.ArmamentCount;
            if (armysForDataBase.Formation == TK3DSim.Mil.Formations.梯形)
            {

            }
        }

        public ArmyObjectGroup( List<ArmyObject> allArmyObject) 
        {
            this.allArmyObject = allArmyObject;

        }
        public override void ObjectFire()
        {
            foreach (ArmyObject army in allArmyObject)
                army.ObjectFire();
        }

        public override void ObjectStop()
        {
            foreach (ArmyObject army in allArmyObject)
                army.ObjectStop();
        }
        public override void ObjectRun()
        {
            foreach (ArmyObject army in allArmyObject)
                army.ObjectRun();
        }
    }
}
